import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";

export function listOrderTeam(query){
  return request({
    url: '/construction/orderTeam/list',
    method: 'get',
    params: query
  })
}

export function getOrderTeam(orderTeamId) {
  return request({
    url: '/construction/orderTeam/' + praseStrEmpty(orderTeamId),
    method: 'get'
  })
}

export function addOrderTeam(data){
  return request({
    url: '/construction/orderTeam',
    method: 'post',
    data: data
  })
}

export function updateOrderTeam(data){
  return request({
    url: '/construction/orderTeam',
    method: 'put',
    data: data
  })
}

export function deleteOrderTeam(orderTeamId){
  return request({
    url: '/construction/orderTeam/'+orderTeamId,
    method: 'delete',
  })
}

export function  cancelOrderTeam(orderTeamId) {
  return request({
    url: '/construction/orderTeam/cancelOrderTeam/'+orderTeamId,
    method: 'get',
  })
}

export function  finishOrderTeam(orderTeamId) {
  return request({
    url: '/construction/orderTeam/finishOrderTeam/'+orderTeamId,
    method: 'get',
  })
}

export function exportOrderTeam(query) {
  return request({
    url: '/construction/orderTeam/export',
    method: 'get',
    params: query
  })
}


